<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员中心--我的活动</title>
</head>

<body>

<p>我的活动</p>

{if $id neq 0}
<a href="{U('UserCenter/activity')}">返回</a>
{foreach from=$list item=val}
<p>活动名称:{$val.name}</p>
<p>广告语:{$val.slogan}</p>
<p>店铺:{$val.shopname}</p>
<p>地址:{$val.address}</p>
<p>电话:{$val.tel}</p>
<p>创建时间:{$val.ctime}</p>
<p>开始时间:{$val.stime}</p>
<p>结束时间:{$val.etime}</p>
{/foreach}
{else}
<a href="{U('Index/index')}">返回</a>
<table cellspacing="10" cellpadding="10" id="points">
	<tr><th>活动名称</th><th>创建时间</th><th>店铺</th></tr>
	{foreach from=$list item=val}
	<tr><td>{$val.name}</td><td>{$val.ctime}</td><td>{$val.shopname}</td><td><a href='{U("UserCenter/activity?id={$val.id}")}'>查看</a></td></tr>
	{foreachelse}
    <tr><td class="no-records" colspan="3">暂无活动...</td></tr>
	{/foreach}
	<tr><td colspan="2">{$page}</td></tr>
</table>
{/if}
</body>
</html>